#!/bin/bash

# 拷贝服务文件
sudo cp -v ./smart_server.service /lib/systemd/system/

# 读取更新配置
sudo systemctl daemon-reload
# 将服务添加到开机自启
sudo systemctl enable smart_server.service
# 手动启动服务
sudo systemctl start smart_server.service
# 查看服务
sudo systemctl status smart_server.service
